import request from '@/utils/request'

// 查询用户商品关联列表
export function listSocialKolUser(query) {
  return request({
    url: '/social/SocialKolUser/list',
    method: 'get',
    params: query
  })
}

// 查询用户商品关联详细
export function getSocialKolUser(userId) {
  return request({
    url: '/social/SocialKolUser/' + userId,
    method: 'get'
  })
}

// 新增用户商品关联
export function addSocialKolUser(data) {
  return request({
    url: '/social/SocialKolUser',
    method: 'post',
    data: data
  })
}

// 修改用户商品关联
export function updateSocialKolUser(data) {
  return request({
    url: '/social/SocialKolUser',
    method: 'put',
    data: data
  })
}

// 删除用户商品关联
export function delSocialKolUser(userId) {
  return request({
    url: '/social/SocialKolUser/' + userId,
    method: 'delete'
  })
}
